package com.zh.freechat.web;

import com.zh.freechat.domain.connect.NodeUsersData;
import com.zh.freechat.domain.user.service.UserChatService;
import com.zh.webcommon.common.viewdata.ApiResult;
import com.zh.webcommon.common.auth.annotation.NonePermission;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 聊天、会话 状态监控
 */
@AllArgsConstructor
@RestController
@RequestMapping("/actual")
public class ActualMonitorController {
    private UserChatService userChatService;

    /**
     * 连接的channel数量
     *
     * @return
     */
    @NonePermission
    @GetMapping("/data")
    public ApiResult<List<NodeUsersData>> monitorData() {
        return ApiResult.success(List.of());
    }

}
